package com.youbo.cloudmall.product.feign;


import com.youbo.common.utils.R;
import com.youbo.common.vo.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author youbo
 * @version 1.0
 * @date 2021/10/11 18:50
 */
@FeignClient("cloudmall-ware")
public interface WareFeignService {

    //查询sku是否有库存
    @PostMapping("ware/waresku/hasStock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);


}
